package com.xuelang.pipeline.artifact.app.harborv2.xo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.OffsetDateTime;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CVEAllowlist {
    /**
     * The creation time of the allowlist.
     */
    private OffsetDateTime creationTime;
    /**
     * the time for expiration of the allowlist, in the form of seconds since epoch.  This is an
     * optional attribute, if it's not set the CVE allowlist does not expire.
     */
    private Long expiresAt;
    /**
     * ID of the allowlist
     */
    private Long id;
    private List<CVEAllowlistItem> items;
    /**
     * ID of the project which the allowlist belongs to.  For system level allowlist this
     * attribute is zero.
     */
    private Long projectID;
    /**
     * The update time of the allowlist.
     */
    private OffsetDateTime updateTime;
}